AddCSLuaFile('cl_init.lua')
include('shared.lua')
/*---------------------------------------------------------
   Name: Initialize
---------------------------------------------------------*/
function ENT:Initialize()
	self.Entity:SetModel( "models/aoc_religious/aoc_celtic_cross_small.mdl" )
	self.Entity:PhysicsInit( SOLID_VPHYSICS )     
	self.Entity:SetMoveType( MOVETYPE_VPHYSICS )   
	self.Entity:SetSolid( SOLID_VPHYSICS )         
	self.Entity:SetColor(255, 255, 255, 255)    

    self.Entity:SetNetworkedBool("bouncing", false, false) 
    
    local phys = self.Entity:GetPhysicsObject()
	if (phys:IsValid()) then
		phys:SetMass(50)
		phys:Wake()
	end
end

function ENT:Use( activator, caller )
	if activator.ug.IsDead then
		activator.ug:Resurrect()
	end
end